package com.jblog.core.model.msg;

import java.io.Serializable;
import java.sql.Timestamp;

import com.jblog.core.model.common.Rank;
import com.jblog.core.model.common.Scope;
import com.jblog.core.model.common.Status;

public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String account;
    private String content;
    private Rank rank = Rank.NORMAL;
    private Scope scope;
    private Status status = Status.UNREAD;
    private Timestamp createTime = new Timestamp(System.currentTimeMillis());

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Rank getRank() {
        return rank;
    }

    public void setRank(Rank rank) {
        this.rank = rank;
    }

    public Scope getScope() {
        return scope;
    }

    public void setScope(Scope scope) {
        this.scope = scope;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

}
